package com.restaurant.application.levelset;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.StringData;
import com.nebutown.generation.basictype.UIDLists;

public class LevelSetDesc extends UnitDescription {

    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(LevelSet.class, "LevelSetData");

        desc.nextBean("LevelSetData")
                .add("lists", UIDLists.class)
        ;

        desc.nextBean("LevelSetPageData")
                .add("memberLevel", Integer.class)
                .add("memberName", String.class)
                .add("score", Integer.class)
                .add("seq", Long.class)
                .add("savePath", String.class)
        ;
        desc
                .addUiFunction("insert", null)
                .addUiFunction("search", "LevelSetPageData")
                .addUiFunction("detail", null)
                .addUiFunction("edit", null)
                .addUiFunction("delete", null)
                .addUiFunction("switchPage", StringData.class.getName())
        ;
        desc.run("./");
    }
}
